range(1,5) not showing [1,2,3,4]
Title
Question
<span style="color: rgb(85, 85, 85); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(205, 205, 205);">In windows, range(1,5) not showing expected output [1,2,3,4,5], Why?</span>
Python-3.4.3 Getting-started-with-for 10-11 min 0-10 sec
Answers:
Hello reader,
range(lowerbound,upperbound)
Generates a range from lowerbound to (upperbound minus 1)
It doesnt include the upperbound
So range(1,5) gives [1,2,3,4]
Login to add comment